package com.itheima.mapper;

import com.itheima.domain.Book;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface Hellomapper {

    @Select("select * from book")
    public List<Book> findAll();

    @Update("update book set bookName=#{bookName},author=#{author},company=#{company},price=#{price},kind_id=#{kind_id} where id=#{id}")
    void update(Book book);
}
